****DATA WP4***
*********DV
set scheme s1mono
tab w12_1country
tab w12_1country, nola

keep if w12_1country==3|w12_1country==4|w12_1country==6

*****YOUTH ONLY
tab w12_1age
tab w12_1agegroup
keep if w12_1age <35
drop if w12_1agegroup > 2
tab w12_1age
tab w12_1agegroup

*****BIOG. AVAILABILITY
tab w12_1sex
tab w12_1sex, nola
recode w12_1sex (2=0)
label define w12_1sex 0 "Male" 1 "Female", modify
tab w12_1sex
tab w12_1sex, nola

tab w12_1gender
tab w12_1gender, nola
recode w12_1gender (2=0) (3=.)
label define w12_1gender 0 "Male" 1 "Female", modify
corr w12_1sex w12_1gender

tab w12_1education_group
tab w12_1education_group, nola

tab w12_1domicile
tab w12_1domicile, nola
gen domicile_rev= 6-w12_1domicile
tab domicile_rev
label define domicile_rev 1 "Farm or home in the country-side" 2 "Country village" 3 "Town or small city" 4 "Suburbs or outskirts of a big city" 5 "A big city", modify
label values domicile_rev domicile_rev
tab domicile_rev

corr w12_1age w12_1sex w12_1education_group domicile_rev

***POLPART
sum w12_1polpart12mo_1 w12_1polpart12mo_2 w12_1polpart12mo_3 w12_1polpart12mo_4 w12_1polpart12mo_5 w12_1polpart12mo_6 w12_1polpart12mo_7 w12_1polpart12mo_8 w12_1polpart12mo_9 w12_1polpart12mo_10 w12_1onlinepart_1 w12_1onlinepart_2 w12_1onlinepart_3 w12_1onlinepart_4
tab w12_1polpart12mo_1

recode w12_1polpart12mo_1 (4/5=0) (2/3=0)
tab w12_1polpart12mo_1 
label define w12_1polpart12mo_1 1 "Yes" 0 "No", modify
label values w12_1polpart12mo_1 w12_1polpart12mo_1
tab w12_1polpart12mo_1

gen strike= w12_1polpart12mo_9
recode strike (4/5=0) (2/3=0)
tab strike 
label define strike 1 "Yes" 0 "No", modify
label values strike strike
tab strike

gen protest_rev= w12_1polpart12mo_1
replace protest_rev=1 if strike==1
tab protest_rev

****NETWORK AVAILABILITY & SOCIAL CAPITAL
sum w12_1socialtrust
tab w12_1socialtrust, nola

tab w12_1lifeengagement1
tab w12_1lifeengagement1, nola
gen lifeengagement1_rev= 7- w12_1lifeengagement1
tab lifeengagement1_rev

tab w12_1metfriends
tab w12_1metfriends, nola
gen metfriends_rev= 5- w12_1metfriends
tab metfriends_rev

tab w12_1poldiscfriends
tab w12_1poldiscfriends, nola

tab w12_1communitypartyp_3
recode w12_1communitypartyp_3 (2/5=0)
tab w12_1communitypartyp_3

corr w12_1socialtrust lifeengagement1_rev metfriends_rev w12_1poldiscfriends w12_1communitypartyp_3


****GRIEVS
tab w12_1deprivepices_4
tab w12_1deprivepices_4, nola

tab w1_income_global
tab w1_income_global, nola
recode w1_income_global (11=.)
sum w1_income_global

corr w12_1deprivepices_4 w1_income_global 

****POLITICAL ATTITUDES
sum w12_1lrscale
tab w12_1lrscale, nolabel

tab w12_1Left_right_5

corr w12_1Libauth_1 w12_1Libauth_2 w12_1Libauth_3 w12_1Libauth_4 w12_1Libauth_5
pca w12_1Libauth_1 w12_1Libauth_2 w12_1Libauth_3 w12_1Libauth_4 w12_1Libauth_5
gen libauth_scale_1= (w12_1Libauth_1 + w12_1Libauth_2 + w12_1Libauth_5)/3
gen libauth_scale_2= (w12_1Libauth_3 + w12_1Libauth_4)/2

tab w12_1demsat
tab w12_1demsat, nolabel

tab w12_1polint
tab w12_1polint, nola
gen polint_rev= 5- w12_1polint
tab polint_rev

tab w12_1xeno2
tab w12_1xeno2, nola
gen xeno_rev=10-w12_1xeno2
tab xeno_rev

sum w12_1intpoleff_2 w12_1extpoleff_2
tab w12_1intpoleff_2 w12_1extpoleff_2
corr w12_1intpoleff_2 w12_1extpoleff_2

sum w12_1poltrust_1 w12_1poltrust_2 w12_1poltrust_3 w12_1poltrust_4 w12_1poltrust_5 w12_1poltrust_6 w12_1poltrust_7 w12_1poltrust_8 w12_1poltrust_9 w12_1poltrust_10 w12_1poltrust_11 w12_1poltrust_12
corr w12_1poltrust_1 w12_1poltrust_2 w12_1poltrust_3 w12_1poltrust_4 w12_1poltrust_5 w12_1poltrust_6 w12_1poltrust_7 w12_1poltrust_8 w12_1poltrust_9 w12_1poltrust_10 w12_1poltrust_11 w12_1poltrust_12
pca w12_1poltrust_1 w12_1poltrust_2 w12_1poltrust_3 w12_1poltrust_4 w12_1poltrust_5 w12_1poltrust_6 w12_1poltrust_7 w12_1poltrust_8 w12_1poltrust_9 w12_1poltrust_10 w12_1poltrust_11 w12_1poltrust_12
alpha w12_1poltrust_1 w12_1poltrust_2 w12_1poltrust_3 w12_1poltrust_4 w12_1poltrust_5 w12_1poltrust_6 w12_1poltrust_7 w12_1poltrust_8 w12_1poltrust_9 w12_1poltrust_10 w12_1poltrust_11 w12_1poltrust_12
pca w12_1poltrust_1 w12_1poltrust_2 w12_1poltrust_3 w12_1poltrust_4 w12_1poltrust_5 w12_1poltrust_6 w12_1poltrust_9 w12_1poltrust_10 w12_1poltrust_11 w12_1poltrust_12
gen poltrust_1_PCA=w12_1poltrust_1*0.3544   
gen poltrust_2_PCA=w12_1poltrust_2*0.3467   
gen poltrust_3_PCA=w12_1poltrust_3*0.3526   
gen poltrust_4_PCA=w12_1poltrust_4*0.3067  
gen poltrust_5_PCA=w12_1poltrust_5*0.3031  
gen poltrust_6_PCA=w12_1poltrust_6*0.2820  
gen poltrust_9_PCA=w12_1poltrust_9*0.2955  
gen poltrust_10_PCA=w12_1poltrust_10*0.3483   
gen poltrust_11_PCA=w12_1poltrust_11*0.3111   
gen poltrust_12_PCA=w12_1poltrust_12*0.2429   
gen poltrust_avge_PCA= (poltrust_1_PCA + poltrust_2_PCA + poltrust_3_PCA + poltrust_4_PCA + poltrust_5_PCA + poltrust_6_PCA + poltrust_9_PCA + poltrust_10_PCA + poltrust_11_PCA + poltrust_12_PCA)/10
sum poltrust_avge_PCA

corr w12_1lrscale w12_1demsat polint_rev w12_1xeno2 w12_1intpoleff_2 w12_1extpoleff_2 poltrust_avge_PCA 
corr w12_1lrscale w12_1demsat polint_rev w12_1intpoleff_2 w12_1extpoleff_2 

****REGRESSIONS
set scheme s1mono

label variable w12_1polpart12mo_1 "Protest"
label variable protest_rev "Protest"
label variable w12_1age "Age"
label variable w12_1education_group "Education"
label variable domicile_rev "Urban-rural"
label variable w12_1sex "Sex (female)"
label variable w12_1deprivepices_4 "Deprivation"
label variable w12_1lrscale "Left-right"
label variable w12_1demsat "Satisfaction democracy"
label variable polint_rev "Political interest"
label variable metfriends_rev "Meeting friends"
label variable w12_1country "Country"
label variable libauth_scale_1 "Libertarian-authoritarian scale"
label variable libauth_scale_2 "Libertarian-authoritarian"
label variable poltrust_avge_PCA "Political trust"
label variable w12_1Left_right_5 "Opposition to socio-economic redistribution"
label variable xeno_rev "Xenophobic attitudes"
label variable w12_1intpoleff_2 "Internal pol. efficacy"
label variable w12_1extpoleff_2 "External pol. efficacy"

bysort w12_1country:sum w12_1polpart12mo_1  w12_1sex w12_1deprivepices_4  w12_1Left_right_5 xeno_rev libauth_scale_1 w12_1age w12_1education_group domicile_rev poltrust_avge_PCA polint_rev metfriends_rev
corr w12_1polpart12mo_1  w12_1sex w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev w12_1age w12_1education_group domicile_rev polint_rev metfriends_rev
bysort w12_1country:sum w12_1polpart12mo_1  w12_1sex w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev w12_1age w12_1education_group domicile_rev polint_rev metfriends_rev libauth_scale_1 w12_1demsat w12_1intpoleff_2
corr w12_1polpart12mo_1  w12_1sex w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev w12_1age w12_1education_group domicile_rev polint_rev metfriends_rev libauth_scale_1 w12_1demsat w12_1intpoleff_2
corr  w12_1sex w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev w12_1age w12_1education_group domicile_rev polint_rev metfriends_rev libauth_scale_1 w12_1demsat w12_1intpoleff_2


logit w12_1polpart12mo_1  w12_1sex w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev i.w12_1country 
logit  w12_1polpart12mo_1  w12_1sex w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev w12_1age w12_1education_group domicile_rev polint_rev metfriends_rev i.w12_1country 
*****
logistic w12_1polpart12mo_1  w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev libauth_scale_1 w12_1age w12_1education_group domicile_rev poltrust_avge_PCA polint_rev metfriends_rev if w12_1country==3
est sto A
logistic w12_1polpart12mo_1  w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev libauth_scale_1 w12_1age w12_1education_group domicile_rev poltrust_avge_PCA polint_rev metfriends_rev if w12_1country==4
est sto B
logistic w12_1polpart12mo_1  w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev libauth_scale_1 w12_1age w12_1education_group domicile_rev poltrust_avge_PCA polint_rev metfriends_rev if w12_1country==6
est sto C
coefplot (A, label(Greece)) (B, label(Italy)) (C, label(Spain)), drop(?cons) xline(0) scheme(s1mono) scale(0.8)

logistic w12_1polpart12mo_1  w12_1age w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 libauth_scale_1 w12_1demsat w12_1intpoleff_2 metfriends_rev if w12_1country==3
est sto A
logistic w12_1polpart12mo_1  w12_1age w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 libauth_scale_1 w12_1demsat w12_1intpoleff_2 metfriends_rev if w12_1country==4
est sto B
logistic w12_1polpart12mo_1  w12_1age w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 libauth_scale_1 w12_1demsat w12_1intpoleff_2 metfriends_rev if w12_1country==6
est sto C
coefplot (A, label(Greece)) (B, label(Italy)) (C, label(Spain)), drop(?cons) xline(0) scheme(s1mono) scale(0.8)


logistic w12_1polpart12mo_1  w12_1age w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev polint_rev metfriends_rev if w12_1country==3
margins, dydx(w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file1.gph", replace
logistic w12_1polpart12mo_1  w12_1age w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev polint_rev metfriends_rev if w12_1country==4
margins, dydx(w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev) atmeans saving(file2, replace) 
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file2.gph", replace
logistic w12_1polpart12mo_1  w12_1age w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev polint_rev metfriends_rev if w12_1country==6
margins, dydx(w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev) atmeans saving(file3, replace)
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file3.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file1.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file2.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file3.gph", row(1) iscale(1) scheme(s1mono)

logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==3
margins w12_1sex, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file4.gph", replace
logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==4
margins w12_1sex, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file5.gph", replace
logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==6
margins w12_1sex, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file6.gph", replace
**# Bookmark #3
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file4.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file5.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file6.gph", row(1) iscale(1) scheme(s1mono)

logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==3
margins w12_1deprivepices_4, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file7.gph", replace
logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==4
margins w12_1deprivepices_4, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file8.gph", replace
logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==6
margins w12_1deprivepices_4, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file9.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file7.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file8.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file9.gph", row(1) iscale(1) scheme(s1mono)


logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==3
margins, at(w12_1Left_right_5= (1 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file10.gph", replace
logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==4
margins, at(w12_1Left_right_5= (1 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file11.gph", replace
logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==6
margins, at(w12_1Left_right_5= (1 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file12.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file10.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file11.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file12.gph", row(1) iscale(1) scheme(s1mono)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\4A.gph", replace


logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==3
margins, at(xeno_rev= (0 5 10)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file13.gph", replace
logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==4
margins, at(xeno_rev= (0 5 10)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file14.gph", replace
logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==6
margins, at(xeno_rev= (0 5 10)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file15.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file13.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file14.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file15.gph", row(1) iscale(1) scheme(s1mono)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\4B.gph", replace

logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==3
margins, at(libauth_scale_1= (1 3 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file16.gph", replace
logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==4
margins, at(libauth_scale_1= (1 3 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file17.gph", replace
logistic w12_1polpart12mo_1  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==6
margins, at(libauth_scale_1= (1 3 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file18.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file16.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file17.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file18.gph", row(1) iscale(1) scheme(s1mono)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\4C.gph", replace

graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\Fig4A.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\Fig4B.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\Fig4C.gph", row(2) iscale(1) scheme(s1mono)


**** Alternative depvar
logistic protest_rev i.w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev if w12_1country==3
logistic protest_rev i.w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev w12_1age w12_1education_group domicile_rev if w12_1country==3
logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==3
margins w12_1sex, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file4a.gph", replace
logistic protest_rev i.w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev if w12_1country==4
logistic protest_rev i.w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev w12_1age w12_1education_group domicile_rev if w12_1country==4
logistic protest_rev  w12_1age i.w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==4
margins w12_1sex, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file5a.gph", replace
logistic protest_rev i.w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev if w12_1country==6
logistic protest_rev i.w12_1sex w12_1deprivepices_4 w12_1Left_right_5 xeno_rev w12_1age w12_1education_group domicile_rev if w12_1country==6
logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==6
margins w12_1sex, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file6a.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file4a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file5a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file6a.gph", row(1) iscale(1) scheme(s1mono)

logistic protest_rev  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==3
margins w12_1deprivepices_4, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file7a.gph", replace
logistic protest_rev  w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==4
margins w12_1deprivepices_4, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file8a.gph", replace
logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==6
margins w12_1deprivepices_4, atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file9a.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file7a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file8a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file9a.gph", row(1) iscale(1) scheme(s1mono)


logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==3
margins, at(w12_1Left_right_5= (1 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file10a.gph", replace
logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==4
margins, at(w12_1Left_right_5= (1 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file11a.gph", replace
logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==6
margins, at(w12_1Left_right_5= (1 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file12a.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file10a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file11a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file12a.gph", row(1) iscale(1) scheme(s1mono)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\graphApp4a.gph", replace


logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==3
margins, at(xeno_rev= (0 5 10)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file13a.gph", replace
logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==4
margins, at(xeno_rev= (0 5 10)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file14a.gph", replace
logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==6
margins, at(xeno_rev= (0 5 10)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file15a.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file13a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file14a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file15a.gph", row(1) iscale(1) scheme(s1mono)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\graphApp4b.gph", replace

logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==3
margins, at(libauth_scale_1= (1 3 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file16a.gph", replace
logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==4
margins, at(libauth_scale_1= (1 3 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file17a.gph", replace
logistic protest_rev w12_1age i.w12_1sex w12_1education_group domicile_rev i.w12_1deprivepices_4 poltrust_avge_PCA c.w12_1Left_right_5 xeno_rev libauth_scale_1 polint_rev metfriends_rev if w12_1country==6
margins, at(libauth_scale_1= (1 3 5)) atmeans
marginsplot, recast(dropline) yline(0)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file18a.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file16a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file17a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\file18a.gph", row(1) iscale(1) scheme(s1mono)
graph save "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\graphApp4c.gph", replace
graph combine "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\graphApp4a.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\graphApp4b.gph" "C:\Users\HP\Documents\working papers\working papers\EURYKA\wp4\graphApp4c.gph", row(2) iscale(1) scheme(s1mono)
